<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="js/jquery.min.js"></script>
    <script>
        function sendGet() {
            $.ajax({
                type: 'get',
                url: 'method',
                success: function(body) {
                    console.log(body);
                }
            });
        }

        function sendPost() {
            $.ajax({
                type: 'post',
                url: 'method',
                success: function(body) {
                    console.log(body);
                }
            });
        }

        function sendDelete() {
            $.ajax({
                type: 'delete',
                url: 'method',
                success: function(body) {
                    console.log(body);
                }
            });
        }
    </script>
</head>
<body>
    <input type="button" onclick="sendGet();" value="发送 get 请求">
    <input type="button" onclick="sendPost();" value="发送 post 请求">
    <input type="button" onclick="sendDelete();" value="发送 delete 请求">
</body>
</html>